# -*- coding: utf-8 -*-

import xadmin
from xadmin import views

from .models import EmailVerifyRecord


class GlobalSettings:
    site_title = '发型星球后台管理'
    site_footer = '发型星球'
    menu_style = 'accordion'
# ------


class EmailVerifyRecordAdmin(object):
    list_display = ['code', 'email', 'send_type', 'send_time']
    search_fields = ['code', 'email', 'send_type']
    list_filter = ['code', 'email', 'send_type']
    show_bookmarks = False


xadmin.site.register(EmailVerifyRecord, EmailVerifyRecordAdmin)
xadmin.site.register(views.CommAdminView, GlobalSettings)
